<template>
  <view class="article-item" @click="$toPage(`/pages/fzbz/qmfzDetail?indexCode=${row.indexCode}`)" >
    <img class="article-image" :src="row.lawPublicityUrl" mode="aspectFill"/>
    <view class="article-content">
      <text class="article-title">{{ row.lawTitle }}</text>
<!--      <text class="article-desc">{{ row.lawContent }}</text>-->
      <text class="article-time">{{ row.createTime }}</text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  props:{
    row:{
      type:Object
    }
  }
}
</script>

<style lang="scss">
.article-item {
  display: flex;
  border-radius: 12rpx;
  padding: 20rpx;
  background: #f5f9f7;
  margin-bottom: 10px;
}

.article-image {
  width: 240rpx;
  height: 160rpx;
  border-radius: 8rpx;
  margin-right: 20rpx;
  background-color: #F0F0F0;
}

.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-title {
  font-size: 34rpx;
  color: $uni-color-primary;
  font-weight: 500;
  margin-bottom: 8rpx;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.article-desc {
  font-size: 28rpx;
  color: #333333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-time {
  font-size: 26rpx;
  color: #999999;
  margin-top: 8rpx;
}
</style>
